package com.yequan.designpattern.entitycombain;

/**
 * @author yq
 * @date 2020/05/08
 */
public class CoarseGrainedObject {

    DependentObjectOne do1 = new DependentObjectOne();
    DependentObjectTwo do2 = new DependentObjectTwo();

    public void setData(String data1, String data2){
        do1.setData(data1);
        do2.setData(data2);
    }

    public String[] getData(){
        return new String[] {do1.getData(),do2.getData()};
    }

}
